cmake_minimum_required(VERSION 3.15)
project(CALC)
set(CMAKE_CXX_STANDARD 11)

file(GLOB SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

# 指定生成库的路径
# LIBRARY_OUTPUT_PATH
set(LIBRARY_OUTPUT_PATH ./wxc/mylib)

# 制作静态库
# add_library(库名称 STATIC 源文件)

# 制作动态库
# add_library(库名称 SHARED 源文件)

add_library(calc SHARED ${SRC_LIST})
# add_library(calc STATIC ${SRC_LIST})

# add_executable(calc ${SRC_LIST})

